package com.cskaoyan.service;

import com.cskaoyan.bean.bo.AuthInfoBo;
import com.cskaoyan.bean.bo.ProfilePasswordBo;
import com.cskaoyan.bean.pojo.admin.Admin;
import com.cskaoyan.bean.vo.AdminDashboardVo;
import com.cskaoyan.bean.vo.AuthInfoVo;

import java.util.Date;

/**
 * @author: lds
 * @interface: AdminServiceImpl
 */
public interface AdminService {

    /**
     * @author: lds
     * @title: queryAdmin
     * @description: 查询登录者（管理员）的信息,返回给auth/info页面
     * 所给信息一定正确
     * @param: [authInfoBo]
     * @return: com.cskaoyan.bean.vo.AuthInfoVo
     */
    AuthInfoVo queryAdmin(AuthInfoBo authInfoBo);
    /**
     * @author: lds
     * @title: queryInfoMessage
     * @description: 查询 user人数 ，goods数量 ，goodsproduct 数量 ，order数量
     * @param: []
     * @return: com.cskaoyan.bean.vo.AdminDashboardVo
     */
    AdminDashboardVo queryInfoMessage();

    Integer changePassword(Admin admin, ProfilePasswordBo profilePasswordBo);

    Integer addPwd(String email, String verificationCode);

    Integer changeIpAndLoginTime(Admin admin, String host, Date date);

    Admin queryAdminExit(String email, String pwd);

    Integer removePwd(Admin admin);

}
